//
//  06_21.c
//  tasks
//
//  Created by Daniel on 2024/6/22.
//

#include <stdio.h>
#include <errno.h>
#include <string.h>

int main()
{
    //打开文件
    FILE* pf = fopen("/Users/mac/Desktop/test.text", "r");
    if(pf == NULL)
    {
        printf("%s\n",strerror(errno));
        return 1;
    }
    //关闭文件
    fclose(pf);
    pf = NULL;
    return 0;
}
